<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DLC Search Engine: com.utn.searchengine.Vocabulary Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DLC Search Engine
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn.html">utn</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1utn_1_1searchengine.html">searchengine</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html">Vocabulary</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">com.utn.searchengine.Vocabulary Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::utn::searchengine::Vocabulary" -->
<p><a href="classcom_1_1utn_1_1searchengine_1_1_vocabulary-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Map&lt; String, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a34b2ee9baca77f11c23cf3b07649ca6b">getVocabularyWords</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#ae9f50efd7c4406e04401d4944ee80781">setVocabularyWords</a> (Map&lt; String, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> &gt; vocabularyWords)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#abb139c8ea23882bd849a5e4fc7efecc3">loadVocabularyWords</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a907e85ea4723eebf01e8eda24e2aa446">Vocabulary</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#af0c9f241dd9e417b744ea3470ad2f3c1">Vocabulary</a> (Map&lt; String, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> &gt; vocabularyWords)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a637ed8e67a9b38cb82d83916163d39e9">addWord</a> (<a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> entry)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#ab1368538cfbf3263aa0c4a0b7b244b6e">addDocumentWords</a> (Map&lt; String, Integer &gt; words)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a987cf76169508e0c080e815218b4a2a5">containsWord</a> (String word)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a789ac5d184325b54fc14484c56dfd8c4">toString</a> ()</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>This class is a temporal-in memory array that manages the information about the words </p>
<dl class="author"><dt><b>Author:</b></dt><dd>altamirano,peker,liberal </dd></dl>

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00017">17</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a907e85ea4723eebf01e8eda24e2aa446"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::Vocabulary" ref="a907e85ea4723eebf01e8eda24e2aa446" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a907e85ea4723eebf01e8eda24e2aa446">com.utn.searchengine.Vocabulary.Vocabulary</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00033">33</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

</div>
</div>
<a class="anchor" id="af0c9f241dd9e417b744ea3470ad2f3c1"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::Vocabulary" ref="af0c9f241dd9e417b744ea3470ad2f3c1" args="(Map&lt; String, Word &gt; vocabularyWords)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a907e85ea4723eebf01e8eda24e2aa446">com.utn.searchengine.Vocabulary.Vocabulary</a> </td>
          <td>(</td>
          <td class="paramtype">Map&lt; String, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> &gt;&#160;</td>
          <td class="paramname"><em>vocabularyWords</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00037">37</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab1368538cfbf3263aa0c4a0b7b244b6e"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::addDocumentWords" ref="ab1368538cfbf3263aa0c4a0b7b244b6e" args="(Map&lt; String, Integer &gt; words)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#ab1368538cfbf3263aa0c4a0b7b244b6e">com.utn.searchengine.Vocabulary.addDocumentWords</a> </td>
          <td>(</td>
          <td class="paramtype">Map&lt; String, Integer &gt;&#160;</td>
          <td class="paramname"><em>words</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>adds all the new words of a new document to the vocabulary </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">words,:</td><td>a collection of words </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00054">54</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

<p>References <a class="el" href="_d_a_o_factory_8java_source.html#l00040">dataaccess.factories.DAOFactory.getActiveDAOFactory()</a>, <a class="el" href="_word_8java_source.html#l00020">com.utn.searchengine.Word.getMaxTF()</a>, <a class="el" href="_word_8java_source.html#l00042">com.utn.searchengine.Word.getName()</a>, <a class="el" href="_word_8java_source.html#l00033">com.utn.searchengine.Word.getNr()</a>, <a class="el" href="classdataaccess_1_1factories_1_1_d_a_o_factory.html#a221a85bee4a075cbe37fc5acce7ba339">dataaccess.factories.DAOFactory.getWordDAO()</a>, <a class="el" href="interfacedataaccess_1_1dao_1_1_word_d_a_o.html#a58adc83c31bbd584aa54cc799cbcdcb6">dataaccess.dao.WordDAO.saveWord()</a>, <a class="el" href="_word_8java_source.html#l00028">com.utn.searchengine.Word.setMaxTF()</a>, and <a class="el" href="_word_8java_source.html#l00037">com.utn.searchengine.Word.setNr()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00041">com.utn.searchengine.LocalWordCountManager.addDocument()</a>.</p>

</div>
</div>
<a class="anchor" id="a637ed8e67a9b38cb82d83916163d39e9"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::addWord" ref="a637ed8e67a9b38cb82d83916163d39e9" args="(Word entry)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a637ed8e67a9b38cb82d83916163d39e9">com.utn.searchengine.Vocabulary.addWord</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&#160;</td>
          <td class="paramname"><em>entry</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds aword to the map </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd></dd></dl>

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00046">46</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

<p>References <a class="el" href="_word_8java_source.html#l00042">com.utn.searchengine.Word.getName()</a>.</p>

</div>
</div>
<a class="anchor" id="a987cf76169508e0c080e815218b4a2a5"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::containsWord" ref="a987cf76169508e0c080e815218b4a2a5" args="(String word)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a987cf76169508e0c080e815218b4a2a5">com.utn.searchengine.Vocabulary.containsWord</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>word</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">word</td><td>a word </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if word is containes </dd></dl>

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00087">87</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00271">com.utn.searchengine.LocalWordCountManager.filterQuery()</a>.</p>

</div>
</div>
<a class="anchor" id="a34b2ee9baca77f11c23cf3b07649ca6b"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::getVocabularyWords" ref="a34b2ee9baca77f11c23cf3b07649ca6b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Map&lt;String, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a>&gt; <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a34b2ee9baca77f11c23cf3b07649ca6b">com.utn.searchengine.Vocabulary.getVocabularyWords</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00019">19</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00245">com.utn.searchengine.LocalWordCountManager.determinateSimilitude()</a>, and <a class="el" href="_local_word_count_manager_8java_source.html#l00222">com.utn.searchengine.LocalWordCountManager.getQueryModule()</a>.</p>

</div>
</div>
<a class="anchor" id="abb139c8ea23882bd849a5e4fc7efecc3"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::loadVocabularyWords" ref="abb139c8ea23882bd849a5e4fc7efecc3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#abb139c8ea23882bd849a5e4fc7efecc3">com.utn.searchengine.Vocabulary.loadVocabularyWords</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00027">27</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

<p>References <a class="el" href="_d_a_o_factory_8java_source.html#l00040">dataaccess.factories.DAOFactory.getActiveDAOFactory()</a>, <a class="el" href="interfacedataaccess_1_1dao_1_1_word_d_a_o.html#a201645375a5f15c78323ee22e1ac9f69">dataaccess.dao.WordDAO.getVocabulary()</a>, and <a class="el" href="classdataaccess_1_1factories_1_1_d_a_o_factory.html#a221a85bee4a075cbe37fc5acce7ba339">dataaccess.factories.DAOFactory.getWordDAO()</a>.</p>

<p>Referenced by <a class="el" href="_local_word_count_manager_8java_source.html#l00029">com.utn.searchengine.LocalWordCountManager.LocalWordCountManager()</a>.</p>

</div>
</div>
<a class="anchor" id="ae9f50efd7c4406e04401d4944ee80781"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::setVocabularyWords" ref="ae9f50efd7c4406e04401d4944ee80781" args="(Map&lt; String, Word &gt; vocabularyWords)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#ae9f50efd7c4406e04401d4944ee80781">com.utn.searchengine.Vocabulary.setVocabularyWords</a> </td>
          <td>(</td>
          <td class="paramtype">Map&lt; String, <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_word.html">Word</a> &gt;&#160;</td>
          <td class="paramname"><em>vocabularyWords</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00023">23</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

</div>
</div>
<a class="anchor" id="a789ac5d184325b54fc14484c56dfd8c4"></a><!-- doxytag: member="com::utn::searchengine::Vocabulary::toString" ref="a789ac5d184325b54fc14484c56dfd8c4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classcom_1_1utn_1_1searchengine_1_1_vocabulary.html#a789ac5d184325b54fc14484c56dfd8c4">com.utn.searchengine.Vocabulary.toString</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_vocabulary_8java_source.html#l00092">92</a> of file <a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/java/com/utn/searchengine/<a class="el" href="_vocabulary_8java_source.html">Vocabulary.java</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 16 2012 02:45:40 for DLC Search Engine by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
